<?php
/**
 * @package contenite/samples
 */
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><?php echo $page_title; ?></title>
    <meta name="description" content="<?php echo $page_description; ?>" />
    <meta name="keywords" content="<?php echo $page_keywords; ?>" />
    <meta name="author" content="<?php echo $page_author; ?>" />
    <meta name="generator" content="Contenite 0.1" />
    <link rel="stylesheet" href="/<?php echo tsfile('styles/contenite.css'); ?>" type="text/css" media="screen" title="default" />
<?php
if (isset($stylesheets)) {
  foreach ($stylesheets as $stylesheet) {
?>
    <link rel="stylesheet" href="/<?php echo tsfile($stylesheet); ?>" type="text/css" media="screen" title="default" />
<?php
  }
}
if (isset($scripts)) {
  foreach ($scripts as $script) {
?>
    <script type="text/javascript" src="/<?php echo tsfile($script); ?>"></script>
<?php
  }
}
?>
  </head>
  <body>
    <div id="outer">
      <div id="header">
        <h1><img src="/img/cte_logo.png" title="<?php echo $page_title; ?>" /></h1>
      </div><!-- header -->
      <div id="inner">
<?php
if (isset($breadcrumbs)) {
?>
        <div id="breadcrumbs">You are here: 
<?php 
foreach ($breadcrumbs as $path => $title) {
  printf('<a href="/%s">%s</a> &raquo; ', $path, $title);
}
echo $page_title; 
?>
        </div>
<?php
}
?>
        <div id="menu">
          <ul>
            <li><a href="#">Sample apps</a><ul class="submenu">
                <!--li><a href="/preregister">Preregistration</a></li-->
                <li><a href="/user">User management</a></li>
              </ul></li>
          </ul>
        </div>
        <div id="content">
<?php 
if (!message(NULL, '<p id="message">%message</p>')) {
  echo '<p id="message"></p>';
}
?>
          <?php echo $content; ?>
        </div><!-- /content -->
      </div><!-- /inner -->
      <div id="footer"><p><a href="http://olav.net/about">Imprint</a> | <?php echo $page_copyright; ?></p></div>
      <?php echo $this->_render('user_element'); ?>
    </div><!-- /outer -->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
      var pageTracker = _gat._getTracker("UA-3547732-4");
      pageTracker._trackPageview();
    } catch(err) {}</script>
  </body>
</html>
